package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.SysRolePermissionDao;
import io.wdb.modules.generator.generator.entity.SysRolePermissionEntity;
import io.wdb.modules.generator.generator.service.SysRolePermissionService;



@Service("sysRolePermissionService")
public class SysRolePermissionServiceImpl implements SysRolePermissionService {
	@Autowired
	private SysRolePermissionDao sysRolePermissionDao;
	
	@Override
	public SysRolePermissionEntity queryObject(Long id){
		return sysRolePermissionDao.queryObject(id);
	}
	
	@Override
	public List<SysRolePermissionEntity> queryList(Map<String, Object> map){
		return sysRolePermissionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysRolePermissionDao.queryTotal(map);
	}
	
	@Override
	public void save(SysRolePermissionEntity sysRolePermission){
		sysRolePermissionDao.save(sysRolePermission);
	}
	
	@Override
	public void update(SysRolePermissionEntity sysRolePermission){
		sysRolePermissionDao.update(sysRolePermission);
	}
	
	@Override
	public void delete(Long id){
		sysRolePermissionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysRolePermissionDao.deleteBatch(ids);
	}
	
}
